package com.match.competition_sub.controller;

import com.match.commonutils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/competition_sub/user")

@Api(tags = "登录模块")
public class CompetitionLogin {
    //login
    @ApiModelProperty("登录接口")
    @PostMapping("/login")
    public Result login() {
        return Result.ok().data("token","admin");
    }
    //info
    @ApiModelProperty("信息回显接口")
    @GetMapping("/info")
    public Result info() {
        return Result.ok().data("roles","[admin]").data("name","admin").data("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }
}
